using Microsoft.SharePoint;

namespace SharePointing.Features.MetaTags
{
    public class MetaTagFieldValue : SPFieldMultiColumnValue
    {
        private const int numberOfFields = 6;

        public MetaTagFieldValue()
            : base(numberOfFields)
        { }

        public MetaTagFieldValue(string value)
            : base(value)
        { }
        /// <summary>
        /// Name of the Tag (from the MetaTagType List)
        /// </summary>
        public string TagName
        {
            get { return this[0]; }
            set { this[0] = value; }
        }
        /// <summary>
        /// Delimiter used for the tag (From MetaTagType List)
        /// </summary>
        public string TagDelimiter
        {
            get { return this[1]; }
            set { this[1] = value; }
        }
        /// <summary>
        /// String value of the tag
        /// </summary>
        public string TagValue
        {
            get { return this[2]; }
            set { this[2] = value; }
        }
        /// <summary>
        /// Denotes whether this pagetag is active
        /// </summary>
        public string PageTagActive
        {
            get { return this[3]; }
            set { this[3] = value; }
        }
        /// <summary>
        /// Either Merge or Override. Denotes whether the
        /// Page Tag is to be merged with the globals or
        /// the globals are overridden with the Page Tags
        /// </summary>
        public string PageTagType
        {
            get { return this[4]; }
            set { this[4] = value; }
        }
        /// <summary>
        /// String that I am currently not using. Left for future use...
        /// </summary>
        public string Arguments
        {
            get { return this[5]; }
            set { this[5] = value; }
        }

    }
}